/ Assembly List / LJCNetCommon / CodeTokenizer / StripQualifier

Namespace - LJCNetCommon


Parameters
text - The text value.
prefixCount - The recursive prefix count.

Returns

The strip text value.

Syntax

C#
public String StripQualifier(String text, Int32& prefixCount)

Strips the leading qualifiers and from next qualifier to end of string. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " private List<string> list;"
tokenizer.SetTokens(text);
short tokenIndex = 1;
string token = tokenizer.GetToken(tokenIndex);

int prefixCount = 0;
string stripToken = tokenizer.StripQualifier(token, ref prefixCount);
// stripToken = "List".

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.